<?php

namespace app\api\model;

use think\Model;

class OrderProduct extends BaseModel
{

    protected $autoWriteTimestamp = true;

    /**
     * 根据order_id获取订单商品信息
     * @param type $order_id
     * @return \think\Collection
     */
    public static function getInfoByOrderId($order_id)
    {
        return self::where('order_id', $order_id)
                        ->select();
    }

}
